<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>旋转加载动画效果</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }

    body {
      width: 100vw;
      height: 100vh;
      background-color: #000;
    }

    .loading {
      width: 120px;
      height: 120px;
      border-radius: 50%;
      perspective: 800px;
      position: fixed;
      left: 0;
      top: 0;
      right: 0;
      bottom: 0;
      margin: auto;
    }

    .loading .item {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      position: absolute;
    }

    .loading .item:first-child {
      border-bottom: 7px solid #fdea2e;
      transform: rotateX(35deg) rotateY(-45deg);
      animation: rotate-one 1s linear infinite;
    }

    .loading .item:nth-child(2) {
      border-right: 7px solid #f40968;
      transform: rotateX(50deg) rotateY(10deg);
      animation: rotate-two 1s linear infinite;
    }

    .loading .item:last-child {
      border-top: 7px solid #77d970;
      transform: rotateX(35deg) rotateY(55deg);
      animation: rotate-three 1s linear infinite;
    }

    @keyframes rotate-one {
      to {
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
      }
    }

    @keyframes rotate-two {
      to {
        transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
      }
    }

    @keyframes rotate-three {
      to {
        transform: rotateX(35deg) rotateY(50deg) rotateZ(360deg);
      }
    }
  </style>
</head>

<body>
  <div class="loading">
    <div class="item"></div>
    <div class="item"></div>
    <div class="item"></div>
  </div>
</body>

</html>